using MediatR;
using RBAC.ErrorCode;
using RBAC.Read.Api.Application.Dto.ERP;
using System.Collections.Generic;

namespace RBAC.Read.Api.Application.Command.ERP.SalesManagement
{
    /// <summary>
    /// 获取用户选项（仅返回 Id、Name）
    /// </summary>
    public class GetUserListCommand : IRequest<APIResult<List<UserOptionDto>>>
    {
        /// <summary>
        /// 关键词（按用户名模糊匹配）
        /// </summary>
        public string? Keyword { get; set; }

        /// <summary>
        /// 返回Top N（默认20）
        /// </summary>
        public int Top { get; set; } = 20;
    }
}
